<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <script>

        document.cookie = 'ww=222;path=/;expires=' + new Date() ;
        document.cookie = 'cc=666;path=/;expires=' + new Date() ;


        // 读取cookie的时候，只会读取到名称和内容
        const res = document.cookie ;
        console.log(res);

    </script>
    
</body>
</html>